function countDown(time) {
  var nowTime = +new Date();
  var inputTime = +new Date(time);
  // var nowTime = new Date().valueOf();

  // var inputTime = new Date(time).valueOf();
  var times = (inputTime - nowTime) / 1000;
  console.log(times);
  var d = parseInt(times / 60 / 60 / 24);
  console.log(d);
  var h = parseInt((times / 60 / 60) % 24);
  console.log(h);
  var m = parseInt((times / 60) % 60);
  console.log(m);
  var s = parseInt(times % 60);
  console.log(s);
}
countDown("2022-11-14 00:00:00");
